/*
 * comandos.h
 *
 *  Created on: 11/12/2009
 *      Author: teledhil
 */

#ifndef COMANDOS_H_
#define COMANDOS_H_

int help();	/*Shows help*/

int connect(char *host, int port);	/*<host:port>
	Connects to the IRC server on <host:port>.*/

int auth(char *nick);	/*<nick>
	Authenticates with the server, sets nickname, username and  real
	name to <nick>.*/

int list();	/*Lists all current IRC channels, number of users, and topic.*/

int join(char *channel);	/*[<channel>]
	Joins  channel  <channel>.  In case no <channel> is provided, it
	simply tells which is the current  channel. If the user was
	already  in a channel, this command make the user leave the cur-
	rent channel and join the new one.*/

int leave();	/*Leaves your current channel.*/

int who();	/*Lists users in current channel.*/

int msg(char *text);	/*<text>
	Sends <txt> to the current channel.*/

int disconnect();	/*Disconnects from server.*/

int quit();	/*Closes program.*/

int nop(char *text);	/*[<text>]
	(Debugging) no operation, just echoes <text> back.*/

int sleep(int secs);	/*[<secs>]
	(Debugging) pauses for <secs> seconds.*/

int offer(char *filename, char *nick);	/*<filename> <nick>
	Launch a DCC server for a file  transfer.   The  recipient  must
	accept your offer with a /download command.*/

int download(char *filename, char *host, int port);	/*<filename> <host:port>
	Starts  a file transfer by direct client connection.  The sender
	must first have offered the file with an /offer command.*/


#endif /* COMANDOS_H_ */
